package com.dartfar.workflow.service;

import net.sf.json.JSONObject;

import com.dartfar.base.model.Person;
import com.dartfar.workflow.model.WorkflowDeployTask;
import com.dartfar.workflow.model.WorkflowDeployment;
import com.dartfar.workflow.model.WorkflowTaskFunMount;

public interface WorkflowPermissionService {
	
	public void loadWorkflowPermissionData(Person person, String modelName,String modelIdName, int id, JSONObject returnObj);
	
	/**
	 * 查询任务部署对象
	 * @param pdid
	 * @param taskName
	 * @return
	 */
	public WorkflowDeployTask findWorkflowDeployTask(String pdid, String taskName);
	
	/**
	 * 查询出任务部署挂接对象
	 * @param deployId
	 * @param taskName
	 * @return
	 */
	public WorkflowTaskFunMount findWorkflowTaskFunMount(String deployId, String taskName);

	/**
	 * 查询出部署对象
	 * @param modelName
	 * @param modelId
	 * @return
	 */
	public WorkflowDeployment findWorkflowDeployment(String modelName,String modelId);
}
